import request from '@/utils/request'
import { file } from '../baseUrl'

//文件上传
export function fileUpload(data, config) {
    return request({
        url: file + '/upload',
        method: 'post',
        data,
        ...config
    })
}
//文件删除
export function fileDel(data) {
    return request({
        url: file + '/delete',
        method: 'post',
        data
    })
}

//文件下载
export function downloadFile(params) {
    return request({
        url: file + '/download',
        method: 'get',
        params,
        responseType: 'blob',
    })
}